import { createStore, applyMiddleware } from "redux";
import thunk from 'redux-thunk'
import logger from 'redux-logger'
import reducer from './reducer'
// 7.使用状态管理容器redux，异步请求接口数据并实现列表数据的持久化
const store = createStore(reducer, applyMiddleware(thunk, logger))

export default store